package com.zc.Enum;

import java.text.MessageFormat;

public enum ErrorEnum {

    /**
     * 业务错误码
     */
    B_10001("B_10001", "缺少必填参数"),
    B_10002("B_10002", "用户校验不通过，信息不完整"),
    B_10003("B_10003", "用户权限不通过"),
    B_10004("B_10004", "用户{0}年龄{1}"),
    B_10005("B_10005", "用户名不存在"),
    B_10006("B_10006", "密码错误"),




    /**
     * 系統级错误码
     */
    S_SUCCESS("S_00000", "成功！"),
    S_UNKNOW_ERROR("S_99999", "系统运行期间异常，请联系管理员！"),
    S_10001("S_10001", "文件大小不能超过{0}"),


    /**
     * Controller层上送校验错误码
     */
    C_10000("C_10000", "报文异常：{0}"),


    ;

    public String errorCode;

    public String errorMsg;

    ErrorEnum(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

}
